package com.xiaocikuai.smallchunks.entity.Transaction;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author1
 * @since 2024-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yshop_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    /**
     * 生成式订单编号
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 支付管理id
     */
    @TableField("pay_id")
    private Integer payId;

    /**
     * 账单id
     */
    @TableField("bid")
    private Integer bid;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 商品id
     */
    @TableField("tid")
    private Integer tid;

    /**
     * 订单类型
     */
    @TableField("otype")
    private Integer otype;

    /**
     * 订单创建机型
     */
    @TableField("create_device")
    private Integer createDevice;

    /**
     * 订单状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 订单创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 订单更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Integer mode;


}
